package httpclient;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.Socket;

public class HttpClient {

	public static void main(String[] args) throws Exception {
		Socket clientSocket = new Socket("localhost", 80);
		BufferedReader reader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
		BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(clientSocket.getOutputStream()));
		System.out.println(reader.readLine());
		clientSocket.close();
		;

	}

}
